package com.example.pre.model.vo;

import com.example.pre.model.User;

/*
 *  用户实体VO
 */
public class UserVO {
	private int id; // 用户id
	private String name; // 用户名
	private String password;// 密码
	private String sex;// 性别
	private String account;
	private int departmentId;// 部门id
	private String type;// 用户类型 administrator：管理员 employee：普通员工
	private String pic;// 头像
	private String departmentName; // 部门名
	private String description;// 部门描述

	public UserVO() {
		super();
	}

	public UserVO(User user, String departmentName, String description) {
		super();
		this.id = user.getId();
		this.name = user.getName();
		this.password = user.getPassword();
		this.sex = user.getSex();
		this.account = user.getAccount();
		this.departmentId = user.getDepartmentId();
		this.type = user.getType();
		this.pic = user.getPic();
		this.departmentName = departmentName;
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public int getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(int departmentId) {
		this.departmentId = departmentId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "UserVO [id=" + id + ", name=" + name + ", password=" + password + ", sex=" + sex + ", account="
				+ account + ", departmentId=" + departmentId + ", type=" + type + ", pic=" + pic + ", departmentName="
				+ departmentName + ", description=" + description + "]";
	}

}
